package com.sbtr.business.calibration.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sbtr.business.calibration.entity.CalibrationTxt;
import com.sbtr.open.calibration.dto.CalibrationCountByClassifyDto;
import com.sbtr.open.calibration.dto.CalibrationCountByFinisherDto;
import com.sbtr.open.calibration.dto.CalibrationCountDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CalibrationTxtMapper extends BaseMapper<CalibrationTxt> {

    List<CalibrationCountDto> countByCalibrationSetId(@Param("calibrationIds") List<Long> calibrationSetIds);


    // 对应F:\meicloud-aiplatform\aiplatform-provider\src\main\resources\mapper\xml\calibration\CalibrationTxtMapper.xml文件
    List<CalibrationCountByFinisherDto>  countTaskByCalibrationIds(@Param("id")  Long id);


    // 对应F:\meicloud-aiplatform\aiplatform-provider\src\main\resources\mapper\xml\calibration\CalibrationTxtMapper.xml文件
    List<CalibrationCountByClassifyDto>countHasCalibrated(@Param("finisher")  String finisher, @Param("calibration_id")  Long calibration_id, @Param("classify_id")  Long classify_id);

}
